<template>
  <div class="loginData">
    <loginDataUser v-if="set" />
    <loginDataDoctor v-else />
  </div>
</template>

<script>
import loginDataDoctor from "./loginData-doctor.vue";
import loginDataUser from "./loginData-user.vue";
export default {
  data() {
    return {
      set: true,
    };
  },
  components: {
    loginDataUser,
    loginDataDoctor,
  },
  created() {
    let user_type = this.$route.query.user_type;
    this.set = user_type == "2" ? true : false;
  },
};
</script>

<style lang="scss" scope>
.loginData {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fafafa;
}
</style>
